package com.webwork.project.system.dataobject;

import java.util.Date;

import com.webwork.common.dataobject.Bool;

public class SysUser {

	/**
	 * 唯一id
	 */
	private int id;
	
	/**
	 * 用户账号名
	 */
	private String userAccount;
	
	/**
	 * 用户名称
	 */
	private String userName;
	
	/**
	 * 密码
	 */
	private String password;
	
	/**
	 * 性别
	 * 1 - 男
	 * 2 - 女
	 */
	private int sex;
	
	/**
	 * 联系电话
	 */
	private String phone;
	
	/**
	 * 邮箱
	 */
	private String email;
	
	/**
	 * 微信
	 */
	private String weixin;
	
	/**
	 * 职位
	 */
	private int jobId;
	
	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 修改时间
	 */
	private Date modifyTime;
	
	/**
	 * 状态
	 * 0 - 停用
	 * 1 - 启用
	 */
	private Bool status = Bool.NULL;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWeixin() {
		return weixin;
	}

	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}

	public int getJobId() {
		return jobId;
	}

	public void setJobId(int jobId) {
		this.jobId = jobId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Bool getStatus() {
		return status;
	}

	public void setStatus(Bool status) {
		this.status = status;
	}
	
	public void setStatus(Integer status) {
		this.status = Bool.fromValue(status);
	}
	
}
